from django.http.response import HttpResponse, JsonResponse
from django.shortcuts import render
from django.views import View
from rest_framework.response import Response


class Mytest(View):
    def get(self, request):
        return render(request, 'testaxios.html')


class Mytest2(View):
    def get(self, request):
        data = {'message':'get_sucess'}
        return JsonResponse(data)

    def post(self, request):
        data = {'message': 'post_data'}
        return JsonResponse(data)



